<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="<?php echo ($site['seokey']); ?>" />
<meta name="description" content="<?php echo ($site['seodescription']); ?>" />
<title><?php echo ($site['sitename']); ?> - <?php echo ($site['subtitle']); ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__;?>/images/welcome.css" />
<script type="text/javascript" src="<?php echo __PUBLIC__;?>/js/jquery.js"></script>
</head>

<body>
<div class="main">
    <a href="<?php echo SITE_URL;?>"><div id="header"></div></a>
    <div class="rightbox">
        <div class="rightbox_1">
            <form method="post" action="<?php echo SITE_URL;?>/dologin">
            <table border="0" width="200px">
                <tr height="100px" valign="top">
                    <td><a href="<?php echo SITE_URL;?>/register" class="btn-reg"><?php echo L('reg_account');?></a></td>
                </tr>
				<tr>
				<td>
				 <a href="<?php echo SITE_URL;?>/Xlogin/goSinaAPI"><img SRC="<?php echo __PUBLIC__;?>/images/24.png" border=0 /></a>
				</td>
				</tr>
				<tr>
				<td>
				 <a href="<?php echo SITE_URL;?>/Xlogin/goQQAPI"><img SRC="<?php echo __PUBLIC__;?>/images/qq24.png" border=0 /></a>
				</td>
				</tr>
                <tr height="40px">
                    <td valign="top">
                    <input tabindex="1" type="text" name="loginname" class="input_text" value="<?php echo L('suppourt_account');?><?php if(ET_UC!=TRUE){ ?> / <?php echo L('suppourt_emailaddr');?><?php }else{ ?> / <?php echo L('suppourt_ucenter');?><?php } ?>" style="width:185px" onfocus="if($(this).val()=='<?php echo L('suppourt_account');?> / <?php echo L('suppourt_emailaddr');?>' || $(this).val()=='<?php echo L('suppourt_account');?> / <?php echo L('suppourt_ucenter');?>'){$(this).val('')}" onblur="if($(this).val()==''){$(this).val('<?php echo L('suppourt_account');?><?php if(ET_UC!=TRUE){ ?> / <?php echo L('suppourt_emailaddr');?><?php }else{ ?> / <?php echo L('suppourt_ucenter');?><?php } ?>')}"/>
                    </td>
                </tr>
                <tr height="80px">
                    <td valign="top">
                    <input tabindex="2" type="password" name="password" class="input_text" value="******" maxlength="20" style="width:185px" onfocus="if($(this).val()=='******'){$(this).val('')}"/>
                    <div style="margin-top:15px">
                        <label class="label_check" for="rememberMe">
                        <input tabindex="3" type="checkbox" name="rememberMe" id="rememberMe" value="on" class="checkbox"/>&nbsp;&nbsp;<?php echo L('nexttime_remember');?>&nbsp;&nbsp;&nbsp;<a href="<?php echo SITE_URL;?>/reset" id="forgot"><?php echo L('forget_pass');?></a>
                        </label>
                    </div>
                    </td>
                </tr>
                <tr height="30px">
                    <td align="center">
                    <p><input type="hidden" name="action" value="login" /><input tabindex="4" type="submit" class="button1" value="<?php echo L('now_login');?>" /></p>
                    <?php echo ($hook['index_login_btn']); ?>
                    </td>
                </tr>
            </table>
            </form>
        </div>
        <div class="rightbox_2">
            <p><img src="<?php echo __PUBLIC__;?>/images/phone.png">&nbsp;&nbsp;<?php echo L('use_mobile_visit');?></p>
            <p style="text-indent:24px"><?php echo ET_URL;?>/m</p>
            <p><img src="<?php echo __PUBLIC__;?>/images/help.gif">&nbsp;&nbsp;<?php echo L('faq');?>：<a href="<?php echo SITE_URL;?>/Index/faq"><?php echo L('click_enter');?></a></p>
            <p><img src="<?php echo __PUBLIC__;?>/images/favor.gif">&nbsp;&nbsp;<?php echo L('about');?>：<a href="<?php echo SITE_URL;?>/Index/about"><?php echo L('click_enter');?></a></p>
			<p><img src="<?php echo __PUBLIC__;?>/images/favor.gif">&nbsp;&nbsp;<?php echo L('wangzhanweifu');?>：<a href="<?php echo SITE_URL;?>/youzie"><?php echo L('click_enter');?></a></p>
        </div>
    </div>
    <div class="weltop">
        <div class="loginbanner"><?php echo ($hook['index_login_banner']); ?></div>
        <div class="hottopic"><ul><?php echo ($topiclist); ?></ul><div class="clearline"></div></div>
    </div>
    <div class="welbody">
        <div class="hotuser">
            <div class="hotuserico"><?php echo L('funny_user');?></div>
            <div class="userlist"><ul><?php echo ($userlist); ?></ul></div>
        </div>
        <div class="hottalk">
            <div class="theysay"><?php echo L('they_fuwu');?>：</div>
            <div class="marqueegb"><div class="panel_bb">
					<form method="get" action="<?php echo SITE_URL;?>/Index">
						<div class="panel_bb_p">
						  <div class="lie_biao">
							 <label class="lie_bi"> <strong>&nbsp;&nbsp;关键字:</strong></label>				 
							 <input id="kw" name="kw" type="text" class="input_text_shuaixuan" value="" />
							 </div>
							 <select id="hpdj" name="hpdj" class="lie_bb">
							 <option value='-1'>好评等级</option> 
							 <option value='1'>一级</option>
							 <option value='2'>二级</option>
							 </select>			
							 <select id="fufenlei" name="fufenlei" class="lie_bb">
							 <option value='-1'>服务分类</option>
							 <?php if(is_array($vol_fuwu)): $i = 0; $__LIST__ = $vol_fuwu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vol_fuwu): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($vol_fuwu['skill_id']); ?>"><?php echo ($vol_fuwu['skill_name']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
							 </select>
							 <select id="zifenlei" name="zifenlei"  class="lie_bb">
							 <option value='-1'>服务分类</option>
							 </select>
							 <script language="javascript">
								$(document).ready(function(){
									//下面是一级下来的时候
									$('#fufenlei').change(function(){
										if(this.value==-1){							
											return;
										}
										$.post('<?php echo SITE_URL;?>/Index/ajaxData_fuwu',{pid:this.value},function(data){
											if(data.status==1){
												$('#zifenlei').empty();//清空原有的数据
												$("<option value='-1'>服务分类</option>").appendTo("#zifenlei");
												$.each(data.data, function(i,n){
													$("<option value='"+n.skill_id+"'>"+n.skill_name+"</option>").appendTo("#zifenlei");
												});
												
											}else{
												alert('没有子级了!');
											}
										},'json');
									});					
								});
							 </script>
						</div>
							<select id="ydb" name="ydb" class="lie_bb">
							<option value='-1'>余额保单</option> 
							<option value='0'>不需要担保</option>
							<option value='0.2'>需要0.2元担保</option>
							</select>  
						<div class="panel_bb_p">
							<select id="lone" name="lone" class="lie_bb">
							<option value="-1">选择省份</option>
							<?php if(is_array($vol)): $i = 0; $__LIST__ = $vol;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vol): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($vol['region_id']); ?>"><?php echo ($vol['region_name']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
							</select>
							<select id="ltwo" name="ltwo" class="lie_bb"><option value="-1">选择城市</option></select>
							<select id="lthree" name="lthree" class="lie_bb"><option value="-1">选择县城</option></select>
							<script language="javascript">
								$(document).ready(function(){
									//$('#ltwo').hide();
									//$('#lthree').hide();
									//下面是一级下来的时候
									$('#lone').change(function(){
										if(this.value==-1){
											//$('#ltwo').hide();
											//$('#lthree').hide();
											return;
										}
										$.post('<?php echo SITE_URL;?>/Index/ajaxData',{pid:this.value},function(data){
											if(data.status==1){
												//$('#lthree').hide();
												$('#ltwo').empty();//清空原有的数据
												$("<option value='-1'>选择城市</option>").appendTo("#ltwo");
												$.each(data.data, function(i,n){
													$("<option value='"+n.region_id+"'>"+n.region_name+"</option>").appendTo("#ltwo");
												});
												$('#ltwo').show();
											}else{
												alert('没有子级了!');
											}
										},'json');
									});
									//下面是二级下来的时候
									$('#ltwo').change(function(){
										if(this.value==-1){
											//$('#lthree').hide();
											return;
										}
										$.post('<?php echo SITE_URL;?>/Index/ajaxData',{pid:this.value},function(data){
											if(data.status==1){
												$('#lthree').empty();//清空原有的数据
												$("<option value='-1'>选择县城</option>").appendTo("#lthree");
												$.each(data.data, function(i,n){
													$("<option value='"+n.region_id+"'>"+n.region_name+"</option>").appendTo("#lthree");
												});
												$('#lthree').show();
											}else{
												alert('没有子级了!');
											}
										},'json');
									});
								});
								</script>
							
							
							<div class="lie_bb"><input id="ut" name="ut" type="checkbox" />  实名 </div> <input type="submit" class="button-servicesearch" value="搜服务" />
						</div>
					</form>
				 </div>

				 <div id="welleft">	
					
					<div class='title'></div>
					<div class="marqueegb">				
						<ol>
							<?php if(is_array($volfuwulist)): $i = 0; $__LIST__ = $volfuwulist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$volfuwulist): ++$i;$mod = ($i % 2 )?><!--最小单元-->
								  <li class="indexgbli">
									  <div>
										  <table border="0" width="100%">
											  <tr>
												  <td width="60px" valign="top"><a href="<?php echo SITE_URL;?>/Setting/face" title="修改头像"><img src="<?php echo sethead($volfuwulist[user_head]);?>" width="50px" height="50px" alt="<?php echo ($volfuwulist[user_name]); ?>" class="imgborder"></a>
												  </td>
												  <td valign="top">
													  <a href="<?php echo SITE_URL;?>/<?php echo ($volfuwulist[user_name]); ?>"> <?php echo ($volfuwulist[user_name]); ?> </a><span class="guanxi"><?php if($volfuwulist['shifouweiqinyou']){ ?> &nbsp;的<?php } ?><?php echo ($volfuwulist[hewodeganxi]); ?></span>&nbsp;&nbsp;<?php echo ($volfuwulist['fuwuleibieming']); ?>&nbsp;&nbsp;服务详情: <?php echo ($volfuwulist['fuwuxiangqing']); ?>
													  <div><div class="spl"> 
													  <?php echo ($volfuwulist['fuwubiaoti']); ?>
													  </div> 
													   <div class="spr">  
													  购买数:<?php echo ($volfuwulist['yongfugoumaishu']); ?> | 好评:<?php echo ($volfuwulist['haopinggeshu']); ?> |单价:<?php echo ($volfuwulist['fuwujiage']); ?>元
													  </div></div>
													 
												  </td>
											  </tr>
										  </table>
									  </div>
								  </li>
							  <!--最小单元--><?php endforeach; endif; else: echo "" ;endif; ?>
						</ol>
					</div>
					
				
				 </div>
				</div> 
        </div>
		
    </div>	
    <div class="welbottom"></div>
	<div class="green-black"><?php echo ($page_fuwu); ?></div>
	<div class="welbottom"></div>
    <div id="indexbottom">
        <a href="<?php echo ET_URL;?>"><?php echo ($site['sitename']); ?></a>&nbsp;<a href="http://www.miibeian.gov.cn" target="_blank"><?php echo ($site[miibeian]); ?></a>&nbsp;<?php echo stripslashes($site["foottongji"]);?>
    </div>
</div>
<script type="text/javascript">	 
	$('#ut').attr("checked",<?php echo ($t_truename); ?>);
	$('#ydb').val('<?php echo ($t_ydanbao); ?>');
	$('#hpdj').val('<?php echo ($t_haopinggs); ?>');
	$('#fufenlei').val('<?php echo ($t_fufenlei); ?>');
	$.post('<?php echo SITE_URL;?>/Index/ajaxData_fuwu',{pid:'<?php echo ($t_fufenlei); ?>'},function(data){
						if(data.status==1){
							$('#zifenlei').empty();//清空原有的数据
							$("<option value='-1'>服务分类</option>").appendTo("#zifenlei");
							$.each(data.data, function(i,n){
								$("<option value='"+n.skill_id+"'>"+n.skill_name+"</option>").appendTo("#zifenlei");
							});							
							 $('#zifenlei').val('<?php echo ($t_zifenlei); ?>');							
						}else{
							//alert('没有子级了!');
						}
					},'json');

	$('#lone').val('<?php echo ($t_lone); ?>');
	$.post('<?php echo SITE_URL;?>/Index/ajaxData',{pid:"<?php echo ($t_lone); ?>"},function(data){
				if(data.status==1){
					$('#ltwo').empty();//清空原有的数据
					$("<option value='-1'>选择城市</option>").appendTo("#ltwo");
					$.each(data.data, function(i,n){
						$("<option value='"+n.region_id+"'>"+n.region_name+"</option>").appendTo("#ltwo");
					});
					$('#ltwo').val("<?php echo ($t_ltwo); ?>");
				
				}else{
					//alert('没有子级了!');
				}
			},'json');
	$.post('<?php echo SITE_URL;?>/Index/ajaxData',{pid:"<?php echo ($t_ltwo); ?>"},function(data){
				if(data.status==1){
					$('#lthree').empty();//清空原有的数据
					$("<option value='-1'>选择县城</option>").appendTo("#lthree");
					$.each(data.data, function(i,n){
						$("<option value='"+n.region_id+"'>"+n.region_name+"</option>").appendTo("#lthree");
					});
					$('#lthree').val("<?php echo ($t_lthree); ?>");
				
				}else{
					//alert('没有子级了!');
				}
			},'json');
		$('#kw').val('<?php echo ($t_kw); ?>');

		


		//定义鼠标移动事件. 7/4/2011
		$("ol li").slice(0, <?php echo ($count); ?>).mouseover(function(){
                   $(this).addClass("indexgbli_light");
                   $(this).removeClass("indexgbli");
                });
                $("ol li").slice(0, <?php echo ($count); ?>).mouseout(function(){
                   $(this).addClass("indexgbli");
                   $(this).removeClass("indexgbli_light");
                });
	
</script>
</body>
</html>